package org.shiwen.week5;

public class Week5 {
    public static void main(String[] args) {
        Student2 student = new Student2();
        System.out.println(student.printAge());
        student.printName();
    }
}

class Student2{
    //属性
    int age;
    String name;
    int m = 10;

    //方法
    void print(){
        System.out.println("吃饭");
        int a = 100;
        System.out.println(a);

    }
    int printAge(){
        age = 100;
        return age;
    }

    void printName(){
        System.out.println("zhangsan");
        return;
    }
}
